import request from '../utils/request';
import personalRequest from '../utils/personalRequest';

// 个人登录
export const login = query => {
    return personalRequest.post('/zsrencai/api/person/user/login', query);
};
// 检测图片验证码
export const captchaImg = query => {
    return request.get('/zsrencai/api/sys/admin/captcha/validate', { params: query });
};
// 发送短信
export const postMsg = query => {
    return request.post('/zsrencai/api/sys/admin/sms/code', query);
};
export const getPersonalInfo = query => {
    return request.get('/zsrencai/api/person/resume/selectResumeList', { headers: { Authorization: 'Bearer ' + query } });
};
// 查看简历数/zsrencai/api/person/resume/deliver/select/view-count
export const viewCount = query => {
    return request.get('/zsrencai/api/ms/resume/deliver/select/view-count', { headers: { Authorization: 'Bearer ' + query } });
};
// 反馈简历数/zsrencai/api/ms/resume/deliver/select/view-count
export const feedbackCount = query => {
    return request.get('/zsrencai/api/ms/resume/deliver/select/industryFeedback-count', { headers: { Authorization: 'Bearer ' + query } });
};
// 刷新简历 /zsrencai/api/ms/resume/refresh-time
export const refreshResume = (id, query) => {
    return request.get('/zsrencai/api/ms/resume/refresh-time/' + id, { headers: { Authorization: 'Bearer ' + query } });
};
// 退出登录
export const logOut = () => {
    return request.get('/zsrencai/api/ms/user/logout');
};

//获取二维码
export const getUserlogin = time => {
    return request.get(`zsrencai/api/person/user/wx/get/qrcode`);
};

//查看登录状态
export const wxLogin = time => {
    return personalRequest.post(`/zsrencai/api/person/user/wx/login`, time);
};
//查看登录状态
// export const wxLogin = time => {
//     return request.post(`http://10.2.11.244:8100/zsrencai/api/person/user/wx/login`, time);
// };
